package com.yootk.config;

import com.yootk.vo.CompanyA;
import com.yootk.vo.CompanyB;
import com.yootk.vo.ICompany;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CompanyConfig {
    @Bean
    public CompanyA companyA(){
        CompanyA companyA = new CompanyA() ;
        companyA.setTitle("asun张三");
        return companyA ;
    }
    @Bean
    public CompanyB companyB(){
        CompanyB companyB = new CompanyB() ;
        companyB.setTitle("张洪艺李四");
        return companyB ;
    }
}
